﻿<%@page import="java.nio.channels.SeekableByteChannel"%>
<%@page import="cn.sendto.model.ResidentInfoModel"%>
<%@page import="cn.sendto.model.UserInfoModel"%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8" errorPage="err.jsp"%>
    <jsp:include page="lock.jsp"></jsp:include>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>主页</title>
	<link rel="stylesheet" type="text/css"  href="css/main.css"  />
	<style type="text/css">
	.maindiv {
		margin-left: 20px;
		margin-right: 40px;
		margin-bottom: 30px;
		margin-top: 40px;
		width: 500px;
		height: 205px;
		border: 1px solid #0092DC;
		background-color: #FFE4C4;
		border-radius: 5px;
		float: left;
		box-shadow: 5px 5px 5px #CCCCCC;
	}
	
	
	
	.textdiv {
		height: 25px;
		background-color: #FFE4C4;
		font-size: 14px;
		font-weight: bold;
		color: #0081C2;
		padding: 5px;
		padding-left: 10px;
	}
	.CurPageTxt{
		margin-left: 20px;
	}
	
	</style>
</head>

<body>
<div style="text-align: center;">
	<%
		 Cookie[] cks = request.getCookies();
		if (cks != null) {
			for (int i = 0; i < cks.length; i++) {
				if(cks[i].getName().equals("username")){
					out.print("欢迎您登陆，"+cks[i].getValue());
				}
			}
		} 
		 if (session.getAttribute("loginUser") != null) {
			UserInfoModel uim = (UserInfoModel) session.getAttribute("loginUser");
				out.print("欢迎您登陆，" + uim.getName());
		}else if(session.getAttribute("loginResident") != null){
			ResidentInfoModel rim = (ResidentInfoModel)session.getAttribute("loginResident");
			out.print("欢迎您登陆，" + rim.getName());
		}
	%>
	</div>
	<div class="CurPageTxt">当前位置：主页</div>
	<div style="margin-left: 100px;">
		<div>
		<div class="maindiv">
			<div class="textdiv">
				通知公告
			<ul type="disc">
				<p><li>物业公司关于对小区车辆管理的通知</li></p>
				<p><li>物业公司关于对小区燃放鞭炮、烟花安全的通知</li></p>
			</ul>
			</div>
		</div>
		<div class="maindiv">
			<div class="textdiv">
				最新动态
			<ul type="disc">
				<p><li>新年将近，物业在此祝各位业主新年快乐</li></p>
				<p><li>新年将近，希望各位业主张贴春联、门神以迎接新年的到来</li></p>
			</ul>
			</div>
		</div>
		</div>
		<div>
		<div class="maindiv">
			<div class="textdiv">
				小区新闻
			<ul type="disc">
				<p><li>由于近期西安雾霾严重各位业主可以在物业免费领取一副防霾口罩</li></p>
			</ul>
			</div>
		</div>
		<div class="maindiv">
			<div class="textdiv">
				小区展板
			<ul type="disc">
				<p><li>小区的卫生、环境等等都离不开各位业主们的努力现将小区的面貌展现给大家</li></p>
			</ul>	
			</div>
		</div>
		</div>
		</div>
</body>
</html>